package com.woniuxy.user.service;

import com.woniuxy.user.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.user.form.AddUserinfoForm;
import com.woniuxy.user.form.UserInfoForm;
import com.woniuxy.user.param.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 用户详情表 服务类
 * </p>
 *
 * @author author
 * @since 2025-05-13
 */
public interface IUserInfoService extends IService<UserInfo> {

    UserInfo userPsswordLogin(UserPasswordLoginParam param) throws Exception;

    void register(AddUserinfoForm form) throws Exception;

    void registerCode(String phone) throws Exception;



    UserInfo loginCodePhone(UserLoginCodeParam bean) throws Exception;

    void loginCode(String phone) throws Exception;

    void updatePassword(UpdatePasswordParam param ,String token) throws Exception;


    void updatePhoto(MultipartFile photo, int id) throws Exception;


    UserInfoForm userInfo(int id) throws Exception;

    void updateLoginName(UpdateLoginNameParam param, String token) throws Exception;

    void updateNickName( String id,String nickName) throws Exception;

    void changeBindingSendCode(String phone) throws Exception;

    void updatePhone(UpdatePhoneParam bean,String token) throws Exception;

    void updatePasswordCode(String phone ,String token) throws Exception;

    void updatePasswordCodeX(UpdatePasswordCodeParam bean, String token) throws Exception;
}
